<template>
	<view class="pay">
		<u-cell-item  :arrow="false" :border-bottom="false">
			<view slot="title">
				<text>支付总额：</text>
				<text class="primary">￥23.00</text>
			</view>
		</u-cell-item>
		<u-cell-item title="请选择支付方式："  :arrow="false" :border-bottom="false"></u-cell-item>
		<view class="pay-list">
			<view :class="['l-item', 'u-flex', 'u-row-between', wx ? 'l-active' : 'l-default']">
				<view class="u-flex">
					<u-icon name="weixin-fill" size="55" :color="wx? '#FF6600' : '#666666'"></u-icon>
					<text class="type-text">微信支付</text>
				</view>
				<u-icon name="checkmark-circle-fill" size="50" :color="wx? '#FF6600' : '#E0E0E0'"></u-icon>
			</view>
			<view :class="['l-item', 'u-flex', 'u-row-between', !wx? 'l-active' : 'l-default']">
				<view class="u-flex">
					<u-icon name="zhifubao" size="55" :color="!wx? '#FF6600' : '#666666'"></u-icon>
					<text class="type-text">支付宝支付</text>
				</view>
				<u-icon name="checkmark-circle-fill" size="50" :color="!wx? '#FF6600' : '#E0E0E0'"></u-icon>
			</view>
		</view>
		<view class="btn-box">
			<u-button type="warning" shape="circle">微信支付￥23.00</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				wx: true
			}
		}
	}
</script>

<style lang="scss" scoped>
	.pay-list {
		padding: 0rpx 40rpx;
		.l-item {
			margin-bottom: 28rpx;
			padding: 25rpx 43rpx;
			border-radius: 53rpx;
		}
		.type-text {
			padding-left: 20rpx;
			font-size: 28rpx;
		}
		.l-default {
			color: #666666;
			border: 4rpx solid #E0E0E0;
		}
		.l-active {
			color: #FF6600;
			border: 4rpx solid #FFAE00;
		}
	}
	.btn-box {
		position: fixed;
		bottom: 59rpx;
		left: 0;
		padding: 0 30rpx;
		width: 100%;
	}
</style>
